<template>
  <div id="app">
    {{$store.state.count}}
    {{$store.getters.value}}
    {{$store.state.a.b.count}}
    <button @click="clickMe">+1</button>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  mounted(){
    console.log(this.$store);
  },
  methods: {
    clickMe(){
      this.$store.dispatch('add')
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
